package gz.smx.pojo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    @RequestMapping("/hello")
    @ResponseBody
    public String Hello(){
        System.out.println("调用HelloController里的----->Hello()方法");
        return "hello";
    }
    @RequestMapping("/NB")
    @ResponseBody
public String NB(){
        System.out.println("调用HelloController里的----->NB()方法");
    return "NB";
}
}
